package ooday01;
//学生类（子）
public class Student extends Person{
    String className;
    String stuId;
    int a;
    Student(){}
    Student(String name,int age,String address,String className, String stuId){
        this.a=1;
        super.name=name;//this也可以
        super.age=age;//this也可以
        super. address=address;//this也可以
        this.className=className;
        this.stuId=stuId;
    }
    void study(){
        System.out.println(name+"正在学习");
    }
}
